package com.hxkj.api;

import com.hxkj.domain.bo.PayParameter;
import com.hxkj.domain.bo.WithdrawParameter;
import com.platform.common.domain.result.ResultDataStruct;
import com.platform.common.domain.result.ResultMessageStruct;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * 支付服务api
 * <p>
 * Create by chenwei on 2018/6/14 13:52
 */
public interface PaymentClientApi {

    /**
     * 支付
     * @param payParameter
     * @return
     */
    @RequestMapping(value = "/pay", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDataStruct pay(@RequestBody PayParameter payParameter);

    /**
     * 获取支付状态
     * @param payParameter
     * @return
     */
    @RequestMapping(value = "/status", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultMessageStruct getTradeStatus(@RequestBody PayParameter payParameter);


    /**
     * 提现
     * @param withdrawParameter
     * @return
     */
    @RequestMapping(value = "/withdrwa", consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultMessageStruct withdraw(@RequestBody WithdrawParameter withdrawParameter);
}